package com.peaker.advertisingpro.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class FragmentPagerAdapter( fm: FragmentManager?,var list:ArrayList<Fragment>) : FragmentPagerAdapter(
    fm!!,
    BEHAVIOR_SET_USER_VISIBLE_HINT
) {



    override fun getCount(): Int=list.size

    override fun getItem(position: Int): Fragment=list.get(position)


}